package com.huizhonglm.diap.api;

/**
 * 描述当前类的作用
 *
 * @author LiXiaoLong
 * @version 1.0
 * @since 2016-03-01 15:10
 */
public class API {

    /**
     * 生产环境
     */
    public static final String HOST = "http://www.huizhonglm.com";
//    /**
//     * 测试环境
//     */
//public static final String HOST = "http://1.82.191.68";

    /**
     * 首页banner列表
     */
    public static final String BANNER_LIST = "mobile/index/advertise";
    /**
     * 首页精选抢购接口
     */
    public static final String FEATURE_LIST = "mobile/index/fineList";
    /**
     * 首页底部商铺列表
     */
    public static final String HOME_SHOP_LIST = "mobile/index/shop";
    /**
     * 附近商铺列表
     */
    public static final String NEAR_SHOP_LIST = "mobile/around/search";
    /**
     * 快捷入口商铺列表
     */
    public static final String SHORTCUTS_SHOP_LIST = "mobile/index/searchByCategoryId";
    /**
     * 附近分类列表
     */
    public static final String NEAR_CATEGORY = "mobile/around/getSpBussType";
    /**
     * 版本检测
     */
    public static final String CHECK_VERSION = "mobile/config/getNewVersion";
    /**
     * 用户登录
     */
    public static final String USER_LOGIN = "mobile/login";
    /**
     * 用户注册
     */
    public static final String USER_REGISTER = "mobile/register";
    /**
     * 获取用户信息
     */
    public static final String GET_USERINFO = "mobile/getCustomer";
    /**
     * 密码重置
     */
    public static final String PASSWD_RESET = "mobile/config/resetPasswd";
    /**
     * 获取验证码接口校验码
     */
    public static final String GET_AUTH_CODE = "customer/getAuthor";
    /**
     * 获取验证码
     */
    public static final String GET_CHECKSUM = "customer/sendMobileCode";
    /**
     * 意见反馈
     */
    public static final String FEED_BACK = "mobile/config/doFeedBack";
    /**
     * 用户积分刷新
     */
    public static final String GET_INTEGRAL = "mobile/customer/getCustomerPoint";
    /**
     * 我的钱包
     */
    public static final String MY_WALLET = "mobile/customer/myWallet";
    /**
     * 修改用户名称
     */
    public static final String MODIFY_NAME = "mobile/customer/updateName";
    /**
     * 修改用户昵称
     */
    public static final String MODIFY_NICKNAME = "mobile/customer/updateNickname";
    /**
     * 修改用户性别
     */
    public static final String MODIFY_SEX = "mobile/customer/updateSex";
    /**
     * 修改用户地区
     */
    public static final String MODIFY_DISTRICT = "mobile/customer/updateArea";
    /**
     * 修改用户地址
     */
    public static final String MODIFY_ADDRESS = "mobile/customer/updateAddress";
    /**
     * 银行卡添加
     */
    public static final String BANK_CARD_ADD = "mobile/bankcard/bindCard";
    public static final String BANK_CARD_CHECK = "mobile/transaction/checkBankInfo";
    /**
     * 银行卡添加
     */
    public static final String BANK_CARD_REM = "mobile/transaction/unbindedCard";
    /**
     * 银行卡列表
     */
    public static final String BANK_CARD_LST = "mobile/bankcard/getCardInfo";
    /**
     * 我的收藏-列表
     */
    public static final String MY_COLLECTION_LST = "mobile/customer/favorite";
    /**
     * 我的收藏-收藏
     */
    public static final String MY_COLLECTION_ADD = "mobile/customer/saveFavorite";
    /**
     * 我的收藏-取消
     */
    public static final String MY_COLLECTION_CUT = "mobile/customer/cancelFavorite";
    /**
     * 订单列表
     */
    public static final String ORDER_LIST = "mobile/customer/getOrderItem";
    /**
     * 商铺详情
     */
    public static final String SHOP_DETAIL = "mobile/around/getShop";
    /**
     * 密码修改
     */
    public static final String PASSWD_MODIFY = "mobile/config/updatePasswd";
    /**
     * 付款
     */
    public static final String PAYMENT = "mobile/customer/pay";
    /**
     * 充值
     */
    public static final String RECHARGE = "";
    /**
     * 提现
     */
    public static final String WITHDRAW = "mobile/transaction/applyGetCash";
    /**
     * 支付订单获取接口-充值
     */
    public static final String ALI_ORDER_BY_RECHARGE = "";
    /**
     * 支付订单获取接口-支付
     */
    public static final String ALI_ORDER_BY_PAYMENT = "mobile/alipay/getOrderInfo";
    /**
     * 我推荐的人列表
     */
    public static final String MY_RCMMER_LIST = "mobile/recommend/myRecomdeder";
    /**
     * 添加推荐者接口
     */
    public static final String REFERRER_ADD = "mobile/recommend/addRcmder";
    /**
     * 获取推荐者接口
     */
    public static final String REFERRER_GET = "mobile/recommend/getRcmderbyUserId";
    /**
     * 排队返现列表接口
     */
    public static final String QUERY_QUEUE = "mobile/queue/myqueueList";
    /**
     * 排队返现列表接口
     */
    public static final String INTEGRAL_CASH_BACK = "mobile/queue/joinQueue";
    /**
     * 认领商铺接口
     */
    public static final String CLAIM_SHOP = "mobile/customer/focuseShop";
    /**
     * 获取已认领商铺接口
     */
    public static final String CLAIM_SHOP_GET = "mobile/recommend/getFocusShopByUserId";
    /**
     * 收益查看接口
     */
    public static final String RCM_REVENUE = "mobile/db/getFunction?dbowner=diap&funcName=F_RCMDINCOM_DAY_LIST&pValue=";
    /**
     * 收益查看接口老接口
     */
    public static final String RCM_REVENUE_OLD = "mobile/customer/rcmdincomeList";
    /**
     * 请商家确认接口
     */
    public static final String CASH_CONFIRM = "mobile/customer/updateOrderToQ";
    /**
     * 图片上传接口
     */
    public static final String UPLOAD_FILE = "mobile/customer/uploadHeaderImg";
    /**
     *
     */
    public static final String CHK_SET_TPWD = "mobile/transaction/checkSetTPassword";
    /**
     *
     */
    public static final String CHK_TPWD = "mobile/transaction/checkTPassword";
    /**
     *
     */
    public static final String CHK_SET_USER_INFO = "mobile/transaction/checkSetUserInfo";
    /**
     *
     */
    public static final String SET_TPWD = "mobile/transaction/setTPassword";
    /**
     *
     */
    public static final String FINISH_USER_INFO = "mobile/transaction/finishUserInfo";
    /**
     *
     */
    public static final String MOD_TPWD = "mobile/transaction/changTPassword";
    public static final String FGT_TPWD = "mobile/transaction/forgetTPassword";

    /**
     * 我的现金-列表
     */
    public static final String MY_CASH_LST = "mobile/customer/cashList";
    /**
     * 我的积分-列表
     */
    public static final String MY_POINT_LST = "mobile/customer/pointList";
    /**
     * 我的推荐人手动绑定
     */
    public static final String MY_RECOMMEND_USER = "/mobile/recommend/phoneNoBindRemder";
    /**
     * 微信支付订单请求
     */
    public static final String WX_PAY_ORDER = "/mobile/weixin/payRequest";
    /**
     * 微信支付订单回调
     */
    public static final String WX_PAY_SUCCESS = "/mobile/weixin/paySuccess";
    /**
     * 积分商城
     */
    public static final String MY_MARKET = "/mobible/point_shop/clientLogin";

    private static Http mHttp;

    public static Http http() {
        if (mHttp == null) {
            mHttp = HttpImpl.registerInstance();
        }
        return mHttp;
    }

    public static String buildUri(String path) {
        return HOST + "/" + path;
    }


    //----------------------------------以下暂时不用--------------------------------------
    /**
     *
     */
    public static final String ADDR_LIST = "";
    /**
     *
     */
    public static final String ADDR_DEFAULT = "";
    /**
     *
     */
    public static final String ADDR_DELETE = "";
    /**
     *
     */
    public static final String ADDR_CREATE = "";
    /**
     *
     */
    public static final String ADDR_UPDATE = "";
    //----------------------------------以上暂时不用--------------------------------------
}
